<?php echo $header; ?>
    
<div id="containner">

<?php echo $column_left; ?>
    
<div id="midcol">

<div align="center">
	<div id="bannerTopSimso">
&nbsp;
<br/>
</div>
</div>

<!--    
<div align="center" id="banner4">  <a title="Phần mềm đăng ký thông tin cho sim Vina Mobi Viettel" alt="sim so dep, sim dep, sim so, simsodep, so dep, sim gia re, sim so dep gia re, sim dien thoai, sim viettel " href="#sim-dep-sim-so-dep-1981/phan-mem-dang-ky-thong-tin-cho-sim-vina-mobi-viettel.html" target="blank"><img src="catalog/view/theme/simsodep/image/phan-mem-dang-ky-thong-tin-cho-sim-vina-mobi-viettel.png"></a></div>
<div id="ctl00_ContentPlaceHolder1_GridViewControl1_UpdateProgress1" style="display:none;">
        <div align="center" style="position:fixed;top:0px;right:20px;margin-top:10px;margin-right:10px;background-color:#FFFF80;color:Maroon;line-height:30px;width:150px;font-weight:bold;">
            <img src="catalog/view/theme/simsodep/image/progress.gif" style="vertical-align:middle;"> Đang tải dữ liệu ...
        </div>
</div>
-->

<div align="center">
 
        <div class="TitleBar" align="left">
            <a title="Sim Số Đẹp Vietnamobile " alt="sim so dep, sim dep, sim so, simsodep, so dep, sim gia re, sim so dep gia re, sim dien thoai, sim viettel " target="_blank" href="index.php?route=product/search"><?php echo $heading_title; ?></a>
            :
        </div>
        <br/>
	
	
 
		
 
			<input name="act" value="search" type="hidden"> 
 
			<div> 
 
				<table cellspacing="0" border="0" id="ctl00_ContentPlaceHolder1_frmThongTinSim" style="width: 100%; border-collapse: collapse; ">
 
					<tbody style="text-align: left; word-spacing: 2px; line-height: 150%;"> 						 
						<tr> 
 
							<td style="height: 11px;" align="center"> 
                            <form action="Javascript:contentSearch()">
							<table style="width: 306px" cellspacing="0" cellpadding="0"> 
 
								<tr> 
 
									<td style="height: 26px; width: 282px;"> 
 
									<table style="width: 70%" cellspacing="0" cellpadding="0"> 
 
										<tr> 
 
											<td> 
 											<?php if ($keyword) { ?>
											<input onkeyup="checkmobis(this);" onclick="this.className='vienxanh'; this.value='';" name="Textsim" type="text" value="<?php echo $keyword; ?>" style="width: 277px; height: 21px; color: #000000" id="keyword" />
 											<?php } else { ?>
 											<input onkeyup="checkmobis(this);" onclick="this.className='vienxanh'; this.value='';" name="Textsim" type="text" value="Nhập số sim bạn cần tìm kiếm!" style="width: 277px; height: 21px; color: #000000" id="keyword" />
 											<?php } ?>
 											</td>
										</tr> 
 
										</table> 
 
									</td> 
									<td></td>
									<td>
										<select id="category_id">
							              <option value="0"><?php echo $text_category; ?></option>
							              <?php foreach ($categories as $category) { ?>
							              <?php if ($category['category_id'] == $category_id) { ?>
							              <option value="<?php echo $category['category_id']; ?>" selected="selected"><?php echo $category['name']; ?></option>
							              <?php } else { ?>
							              <option value="<?php echo $category['category_id']; ?>"><?php echo $category['name']; ?></option>
							              <?php } ?>
							              <?php } ?>
							            </select>
									</td>
 
									<td style="height: 26px;padding-left:3px"> 
 
									<a onclick="contentSearch();" class="button"><span><?php echo $button_search; ?></span></a>
									</td> 
 
								</tr> 
 
							</table>
                            </form> 
 
							</td> 
 
						</tr> 
 
				</table> 
 
				
 
				
 
				</div> 
				
				
 
		
 
	
 
</div> 
<br/>
<div class="TitleBar">Sim số đẹp :</div>
<br/>
<div align="center"> 
<div id="ctl00_ContentPlaceHolder1_GridViewControl1_UpdatePanel1"> 
    
	
    <div> 
		<table class="gdv" cellspacing="0" cellpadding="3" rules="all" border="1" id="ctl00_ContentPlaceHolder1_GridViewControl1_gdvDanhSachSim" style="color:#BFBFBF;background-color:white;border-color:Black;border-width:1px;border-style:Solid;font-weight:bold;width:570px;border-collapse:collapse;"> 
			<tbody><tr align="center" style="color:#BC1318;font-weight:bold;"> 
				<th scope="col">Sim Số Đẹp</th><th scope="col">Giá Bán</th><th scope="col">Mạng</th><th scope="col">Ðặt Mua</th> 
			</tr>

<?php if ($products) { ?>	
    <?php for ($i = 0; $i < sizeof($products); $i++) { ?>	
                    <tr> 
				<td align="center" style="font-size:15px;font-weight:bold;"> 
                   <a title="Sim So Dep <?php echo $products[$i]['name']; ?>" alt="sim so dep, sim dep, sim so, simsodep, so dep, sim gia re, sim so dep gia re, sim dien thoai, sim viettel " target="" href="<?php echo str_replace('&', '&amp;', $products[$i]['href']); ?>"><?php echo $products[$i]['name']; ?></a> 
                </td><td align="center" style="font-size:15px;font-weight:bold;color:#333333;"> 
                    <?php echo $products[$i]['price']; ?> <sup>VNÐ</sup> 
                </td><td align="center" style="font-size:15px;font-weight:bold;color:#333333;"> 
                    <?php echo $products[$i]['model']; ?> 
                </td><td align="center"> 
                     <a title="Sim So Dep <?php echo $products[$i]['name']; ?>" alt="sim so dep, sim dep, sim so, simsodep, so dep, sim gia re, sim so dep gia re, sim dien thoai, sim viettel " target="" href="<?php echo str_replace('&', '&amp;', $products[$i]['href']); ?>"><img src="catalog/view/theme/simsodep/image/gio.gif" alt="sim so dep, sim dep, sim so, simsodep, so dep, sim gia re, sim so dep gia re, sim dien thoai, sim viettel "></a> 
                </td> 
			</tr>
<?php } ?>		 			
<?php } ?>
 
		</tbody></table> 
        
        <div class="pagination"><?php echo $pagination; ?></div> 
	</div> 
    
</div> 
<br> 
</div> 
    
 
 
 


</div>      

<?php echo $column_right; ?>
<script type="text/javascript"><!--
$('#content_search input').keydown(function(e) {
	if (e.keyCode == 13) {
		contentSearch();
	}
});

function contentSearch() {
	url = 'index.php?route=product/search';
	
	var keyword = $('#keyword').attr('value');
	
	if (keyword) {
		url += '&keyword=' + encodeURIComponent(keyword);
	}

	var category_id = $('#category_id').attr('value');
	
	if (category_id) {
		url += '&category_id=' + encodeURIComponent(category_id);
	}
	
	if ($('#description').attr('checked')) {
		url += '&description=1';
	}
	
	if ($('#model').attr('checked')) {
		url += '&model=1';
	}

	location = url;
}
//--></script>

<?php echo $footer; ?>